﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mark_dal
{
    public class yuangongadd_dal
    {
        DBHelper db= new DBHelper ();
        public bool addadmin(string name,string pwd1 )
        {
            string sql = string.Format("insert into AdminInfo (AdminName,AdminPass,AdminRole) values ('{0}','{1}',1)",
                   name, pwd1);
            int count = db.ExecuteNoQuery(sql);
            db.Close();
            if (count == 1)
            {
                return true;
            }
            else
            {
                return false;
            }
            
        }
         
    }
}
